SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 39961: "ERROR: Parsing error generating code." when indexing an array within a DO-WHILE loop

DetailsAboutRate It

You might get the following error message when you have a DO-WHILE loop in PROC FCMP or PROC COMPILE:

ERROR: Parsing error generating code.
This problem is known to occur if an array is indexed within a DO-WHILE statement. For example:
do i=1 to N while z[i] <= M;
You can circumvent this problem by indexing the array within the DO-WHILE loop. Here is an example using a dummy variable:
do i=1 to N while z[i] <= M; temp = z[i]; ... end;



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASz/OS9.1 TS1M3 SP49.3 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP49.3 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M3 SP49.3 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M3 SP49.3 TS1M0
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP49.3 TS1M0
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP4
Microsoft Windows 2000 Server9.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M3 SP4
Microsoft Windows NT Workstation9.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.3 TS1M0
Microsoft Windows XP Professional9.1 TS1M3 SP49.3 TS1M0
Windows Vista9.1 TS1M3 SP49.3 TS1M0
Windows Vista for x649.1 TS1M3 SP49.3 TS1M0
64-bit Enabled AIX9.1 TS1M3 SP49.3 TS1M0
64-bit Enabled HP-UX9.1 TS1M3 SP49.3 TS1M0
64-bit Enabled Solaris9.1 TS1M3 SP49.3 TS1M0
HP-UX IPF9.1 TS1M3 SP49.3 TS1M0
Linux9.1 TS1M3 SP49.3 TS1M0
Linux on Itanium9.1 TS1M3 SP49.3 TS1M0
OpenVMS Alpha9.1 TS1M3 SP49.3 TS1M0
Solaris for x649.1 TS1M3 SP49.3 TS1M0
Tru64 UNIX9.1 TS1M3 SP49.3 TS1M0
SAS SystemSAS Risk Dimensions Enterprise EditionMicrosoft Windows 2000 Advanced Server4.2.19.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server4.2.19.1 TS1M3 SP4
Microsoft Windows 2000 Server4.2.19.1 TS1M3 SP4
Microsoft Windows 2000 Professional4.2.19.1 TS1M3 SP4
Microsoft Windows NT Workstation4.2.19.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition4.2.15.319.1 TS1M3 SP49.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition4.2.15.319.1 TS1M3 SP49.3 TS1M0
Microsoft Windows Server 2003 Standard Edition4.2.15.319.1 TS1M3 SP49.3 TS1M0
Microsoft Windows XP Professional4.2.15.319.1 TS1M3 SP49.3 TS1M0
Windows Vista4.2.15.319.1 TS1M3 SP49.3 TS1M0
Windows Vista for x644.2.15.319.1 TS1M3 SP49.3 TS1M0
64-bit Enabled AIX4.2.15.319.1 TS1M3 SP49.3 TS1M0
64-bit Enabled HP-UX4.2.15.319.1 TS1M3 SP49.3 TS1M0
64-bit Enabled Solaris4.2.15.319.1 TS1M3 SP49.3 TS1M0
HP-UX IPF4.2.15.319.1 TS1M3 SP49.3 TS1M0
Linux4.2.15.319.1 TS1M3 SP49.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.